package com.pig4cloud.pig.village.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 土地资源
 * @author jimi.jin
 * @date 2022/3/19
 */
@TableName("resource_house")
@Data
public class House {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@JsonIgnore
	private LocalDateTime createTime;
	@JsonIgnore
	private LocalDateTime updateTime;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	@TableLogic(value = "0",delval = "1")
	private String delFlag;
	@JsonIgnore
	private Integer tenantId;

	@ApiModelProperty(value = "家庭id")
	private Long familyId;

	@ApiModelProperty(value = "房屋总占地面积")
	private BigDecimal floorTotalArea;

	@ApiModelProperty(value = "房屋总建筑面积")
	private BigDecimal buildingTotalArea;

	@ApiModelProperty(value = "主房批准总占地面积")
	private BigDecimal approvedFloorArea;

	@ApiModelProperty(value = "主房批准建筑总占地面积")
	private BigDecimal approvedBuildingArea;

	@ApiModelProperty(value = "主房建造总占地面积")
	private BigDecimal constructFloorArea;

	@ApiModelProperty(value = "主房建造建造总占地面积")
	private BigDecimal constructBuildingArea;

	@ApiModelProperty(value = "辅房占地面积")
	private BigDecimal additonalRoomFloorArea;

	@ApiModelProperty(value = "简陋建筑占地面积")
	private BigDecimal shantyFloorArea;

	@ApiModelProperty(value = "墙长")
	private BigDecimal wallLength;

	@ApiModelProperty(value = "墙高")
	private BigDecimal wallHeight;

	@ApiModelProperty(value = "备注")
	private String remarks;
}
